﻿using Core.Framework.Model.WebSockets;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.IBusiness.IPushModule.Model
{
    public abstract class BasePush<T>
    {

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }


        /// <summary>
        /// 消息是否必须到达
        /// 默认为 “是”
        /// 如果为 “否” 则不存在订阅消息时抛弃消息
        /// </summary>
        public bool IsMustBeServed { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        public MessageTypeEnum MessageType { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        public string Template { get; set; }


        /// <summary>
        /// 登录Token
        /// </summary>
        public string ClientToken { get; set; }

        /// <summary>
        /// 消息关键字
        /// </summary>
        public string MessageKey { get; set; }


        /// <summary>
        /// 消息内容
        /// </summary>
        public T MessageContent { get; set; }

        /// <summary>
        /// 获取推送消息
        /// </summary>
        /// <returns></returns>
        //public abstract string GetPushMessage();
    }
}
